<template>
    <ul>
        <li v-for="item in sendarr" :key="item.id" class="package">
            <div class="pack-right flex1">
                <span>待发货</span>
                <span>寄给{{item.s_name}}的{{item.info}}正在飞速赶往目的地！</span>
            </div>
        </li>
    </ul>
</template>

<script>
export default {
    name: "loading",
    data() {
        return {
            sendarr: []
        }
    },
    created() {
        this.sendarr = JSON.parse(sessionStorage.getItem('sendarr')) || [];
    }
}
</script>

<style lang="scss" scoped>
    ul {
        padding: 20px;
    }
    .package{
        display: flex;
        padding: 20px;
        box-shadow: 0 5px 15px 0 rgba(0,0,0,.2);
        border-radius: 5px;
        margin-bottom: 30px;
        .pack-right{
            margin-left: 10px;
            span {
                display: flex;
                font-size: 24px;
            }
        }
    }
</style>